package cn.spring.mapper;

import cn.spring.domain.Department;
import cn.spring.query.DepartmentQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
    @Mapper
public interface DepartmentMapper {
    /**新增 */
    void insert(Department department);
    /**更新 */
    void update(Department department);
    /**删除 */
    void delete(Long id);
    /**查询所有 */
    List<Department> selectAll();
    /**查询单个部门 */
    Department selectById(Long id);
    /** 多个删除*/
    void batchDelete(List<Long> ids);
    /** 高级查询和分页*/
    Long queryTotal(DepartmentQuery departmentQuery);
    List<Department> queryPage(DepartmentQuery departmentQuery);


}
